import { ref } from "vue";

export default function useErr() {
  const err = ref<string | undefined>();

  const setErr = (e: string) => {
    err.value = e;
  };
  return [err, setErr];
}
